package com.umeox.watch.moto.launcher.bean;

/**
 * @author zl
 * @date 2018/8/3
 */

public class MissCallBean {

    private String cachedName;
    private String number;
    private String avatar;
    private long date;
    private int count;

    public MissCallBean(){

    }

    public MissCallBean(String cachedName, String number, String avatar, long date, int count) {
        this.cachedName = cachedName;
        this.number = number;
        this.avatar = avatar;
        this.date = date;
        this.count = count;
    }




    public String getCachedName() {
        return cachedName;
    }

    public void setCachedName(String cachedName) {
        this.cachedName = cachedName;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public long getDate() {
        return date;
    }

    public void setDate(long date) {
        this.date = date;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    /**
     *判断是否为同一个对象
     * @param o number一样可判断为同一联系人
     * @return
     */

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MissCallBean)) return false;

        MissCallBean that = (MissCallBean) o;

        return number.equals(that.number);
    }

    @Override
    public int hashCode() {
        return number.hashCode();
    }
}
